coreVersion: v1
kind: Item
includeTemplates:
  - default
  - intermediate
metadata:
  name: partBOM
  displayName: Part BOM Entry
  pluralName: partBOMs
  displayPluralName: Part BOM
  dataSource: main
  tableName: design_part_bom
  titleAttribute: label
  description: Part BOM
  core: false
  performDdl: true
  versioned: false
  localized: false
  notLockable: false
spec:
  attributes:
    label:
      type: string
      columnName: label
      displayName: Label
      description: Label
      length: 50
      colWidth: 200
    source:
      type: relation
      relType: manyToOne
      target: part
      inversedBy: partBOM
      columnName: source_id
      displayName: Source Part
      description: Source Part
      required: true
      colWidth: 300
    target:
      type: relation
      relType: manyToOne
      target: part
      columnName: target_id
      displayName: Target Part
      description: Target Part
      required: true
      colWidth: 300
    quantity:
      type: float
      columnName: quantity
      displayName: Quantity
      description: Quantity
      minRange: 0
